package com.cmw.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import com.cmw.core.base.annotation.Description;
import com.cmw.core.base.entity.IdBaseEntity;
import com.cmw.core.base.entity.IdEntity;

import java.util.Date;


/**
 * 登录日志
 * @author 程明卫
 * @date 2017-06-19T00:00:00
 */
@Description(remark="登录日志实体",createDate="2017-06-19T00:00:00",author="程明卫")
@Entity
@Table(name="GL_LoginLog")
@SuppressWarnings("serial")
public class LoginLogEntity extends IdEntity {
	
	
	 @Description(remark="备注")
	 @Column(name="remark" ,length=200 )
	 private String remark;

	 @Description(remark="设备来源")
	 @Column(name="rsource" )
	 private Integer rsource;

	 @Description(remark="登录状态")
	 @Column(name="xstatus" ,nullable=false )
	 private Integer xstatus;

	 @Description(remark="登录IP")
	 @Column(name="ip" ,length=75 )
	 private String ip;

	 @Description(remark="登录时间")
	 @Column(name="loginTime" ,nullable=false )
	 private Date loginTime;

	 @Description(remark="用户名")
	 @Column(name="account" ,nullable=false ,length=50 )
	 private String account;

	 @Description(remark="会员ID")
	 @Column(name="memberId" ,nullable=false )
	 private Long memberId;


	public LoginLogEntity() {

	}

	
	/**
	  * 设置备注的值
	 * @param 	remark	 备注
	**/
	public void setRemark(String  remark){
		 this.remark=remark;
 	}

	/**
	  * 获取备注的值
	 * @return 返回备注的值
	**/
	public String getRemark(){
		 return remark;
 	}

	/**
	  * 设置设备来源的值
	 * @param 	rsource	 设备来源
	**/
	public void setRsource(Integer  rsource){
		 this.rsource=rsource;
 	}

	/**
	  * 获取设备来源的值
	 * @return 返回设备来源的值
	**/
	public Integer getRsource(){
		 return rsource;
 	}

	/**
	  * 设置登录状态的值
	 * @param 	xstatus	 登录状态
	**/
	public void setXstatus(Integer  xstatus){
		 this.xstatus=xstatus;
 	}

	/**
	  * 获取登录状态的值
	 * @return 返回登录状态的值
	**/
	public Integer getXstatus(){
		 return xstatus;
 	}

	/**
	  * 设置登录IP的值
	 * @param 	ip	 登录IP
	**/
	public void setIp(String  ip){
		 this.ip=ip;
 	}

	/**
	  * 获取登录IP的值
	 * @return 返回登录IP的值
	**/
	public String getIp(){
		 return ip;
 	}

	/**
	  * 设置登录时间的值
	 * @param 	loginTime	 登录时间
	**/
	public void setLoginTime(Date  loginTime){
		 this.loginTime=loginTime;
 	}

	/**
	  * 获取登录时间的值
	 * @return 返回登录时间的值
	**/
	public Date getLoginTime(){
		 return loginTime;
 	}

	/**
	  * 设置用户名的值
	 * @param 	account	 用户名
	**/
	public void setAccount(String  account){
		 this.account=account;
 	}

	/**
	  * 获取用户名的值
	 * @return 返回用户名的值
	**/
	public String getAccount(){
		 return account;
 	}

	/**
	  * 设置会员ID的值
	 * @param 	memberId	 会员ID
	**/
	public void setMemberId(Long  memberId){
		 this.memberId=memberId;
 	}

	/**
	  * 获取会员ID的值
	 * @return 返回会员ID的值
	**/
	public Long getMemberId(){
		 return memberId;
 	}



	@Override
	public Object[] getDatas() {
		return new Object[]{remark,rsource,xstatus,ip,loginTime,account,memberId};
	}

	@Override
	public String[] getFields() {
		return new String[]{"remark","rsource","xstatus","ip","loginTime","account","memberId"};
	}

}
